package com.example.loginproject.view.fragments

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.loginproject.R
import com.example.loginproject.databinding.FragmentPatternLoginBinding


class PatternLoginFragment : Fragment() {
    private lateinit var binding:FragmentPatternLoginBinding
    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        binding = FragmentPatternLoginBinding.inflate(inflater,container,false)
        return binding.root
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        binding.unlockView.addDrawFinishedListener { unlockView, s ->
            unlockView.showError()
        }
    }
}